package pattern.behavior.template;

/**
 * @author : Rookie
 * @description :
 * @date : 2023/8/14
 */
public class TemplateMethodPattern {

    public static void main(String[] args) {
        Coffee coffee = new Coffee();
        System.out.println("===========开始冲咖啡==========");
        coffee.prepareRecipe();
        Tea tea = new Tea();
        System.out.println("============开始泡茶==========");
        tea.prepareRecipe();
    }
}
